package com.deyuanyun.pic.pipe.domain.exceldomain;

import java.util.Date;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;
import com.deyuanyun.pic.pipe.support.validatefun.ValveRoomValidata;

public class PipeSegmentImportDemo {

	private String code;
	
	@DataValidate(notNull = true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
	private String pipeLineId;
	
	@DataValidate(notNull = true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
	private String segment;
	
	@DataValidate(lengthLimit="100",lengthLimitMessage="长度不能大于100")
	private String beginposition;
	
	@DataValidate(lengthLimit="100",lengthLimitMessage="长度不能大于100")
	private String endposition;
	
	@DataValidate(myFunction=ValveRoomValidata.class,myFunctionMessage="场站阀室不存在！")
	private String beginRoom;
	
	@DataValidate(myFunction=ValveRoomValidata.class,myFunctionMessage="场站阀室不存在！")
	private String endRoom;
	
	
	
	
	@CodeVail(majorCode="PIPELINE_TYPE",fieldName="管道类别")
	@DataValidate(notNull=true,myFunction=CodeValidata.class)
	private String pipelinetype;
	
	@DataValidate(datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"},type=Date.class)
	private String inservicetime;
	
	@CodeVail(majorCode="OPERATIONAL_STATUS",fieldName="运行状态")
	@DataValidate(notNull=true,myFunction=CodeValidata.class)
	private String operationalstatus;
	
	@DataValidate(type = Number.class)
	private String designlength;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
	private String begin_x;
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
	private String begin_y;
	@DataValidate(notNull = true,type = Number.class,numberRang="{-999999,999999}",notNullMessage="z坐标范围只能是0至999999米")
	private String begin_z;
	
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
	private String end_x;
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
	private String end_y;
	@DataValidate(notNull = true,type = Number.class,numberRang="{-999999,999999}",notNullMessage="z坐标范围只能是0至999999米")
	private String end_z;
	
	
	
//	@DataValidate(notNull = true,type = Number.class)
//	private String countlength;
	
	@CodeVail(majorCode="DIAMETER",fieldName="管径")
	@DataValidate(notNull=true,myFunction=CodeValidata.class)
	private String diameter;

	@DataValidate(notNull = true,numberRang="{0,200}",type = Number.class)
	private String wallthickness;
	
	@CodeVail(majorCode="MATERIAL",fieldName="管材")
	@DataValidate(notNull=true,myFunction=CodeValidata.class)
	private String material;
	
	@CodeVail(majorCode="MANUPIPE_TYPE",fieldName="制管方式")
	@DataValidate(myFunction=CodeValidata.class)
	private String manupipetype;
	
	@CodeVail(majorCode="COATINGMATERIAL",fieldName="防腐材料")
	@DataValidate(myFunction=CodeValidata.class)
	private String coatingmaterial;
	
	@CodeVail(majorCode="COATING_GRADE",fieldName="防腐等级")
	@DataValidate(myFunction=CodeValidata.class)
	private String coatinggrade;
	
	@CodeVail(majorCode="JOINT_MATERIAL",fieldName="补口材料")
	@DataValidate(myFunction=CodeValidata.class)
	private String jointmaterial;
	
	@CodeVail(majorCode="INCOATING_MATERIAL",fieldName="内涂层材料")
	@DataValidate(myFunction=CodeValidata.class)
	private String incoatingmaterial;
	
	@CodeVail(majorCode="CP_TYPE",fieldName="阴保方式")
	@DataValidate(myFunction=CodeValidata.class)
	private String cptype;
	
	@DataValidate(type = Number.class)
	private String designtranyear;
	
	@DataValidate(numberRang="{0,50}",type = Number.class)
	private String pressurerating;
	
	@CodeVail(majorCode="MEDIUM_TYPE",fieldName="输送介质")
	@DataValidate(myFunction=CodeValidata.class)
	private String mediumtype;
	
	@CodeVail(majorCode="DRY_OR_WET",fieldName="干气或湿气")
	@DataValidate(myFunction=CodeValidata.class)
	private String dryorwet;
	
	@DataValidate(type = Integer.class)
	private String h2s;
	
	@CodeVail(majorCode="PIPE_FUNCTION",fieldName="管线功能")
	@DataValidate(myFunction=CodeValidata.class)
	private String pipefunction;
	
	@DataValidate()
	private String designunit;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String construcion;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String supervision;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String testingcompany;
	
	@DataValidate(lengthLimit="80",lengthLimitMessage="长度不能大于80")
	private String recorder;
	
	@DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
	private String recordtime;
	
	@DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
	private String remarks;
	
	
	
	public String getBeginRoom() {
		return beginRoom;
	}
	public void setBeginRoom(String beginRoom) {
		this.beginRoom = beginRoom;
	}
	public String getEndRoom() {
		return endRoom;
	}
	public void setEndRoom(String endRoom) {
		this.endRoom = endRoom;
	}
	public String getBegin_x() {
		return begin_x;
	}
	public void setBegin_x(String begin_x) {
		this.begin_x = begin_x;
	}
	public String getBegin_y() {
		return begin_y;
	}
	public void setBegin_y(String begin_y) {
		this.begin_y = begin_y;
	}
	public String getBegin_z() {
		return begin_z;
	}
	public void setBegin_z(String begin_z) {
		this.begin_z = begin_z;
	}
	public String getEnd_x() {
		return end_x;
	}
	public void setEnd_x(String end_x) {
		this.end_x = end_x;
	}
	public String getEnd_y() {
		return end_y;
	}
	public void setEnd_y(String end_y) {
		this.end_y = end_y;
	}
	public String getEnd_z() {
		return end_z;
	}
	public void setEnd_z(String end_z) {
		this.end_z = end_z;
	}
	public String getPipeLineId() {
		return pipeLineId;
	}
	public void setPipeLineId(String pipeLineId) {
		this.pipeLineId = pipeLineId;
	}
	public String getSegment() {
		return segment;
	}
	public void setSegment(String segment) {
		this.segment = segment;
	}
	public String getBeginposition() {
		return beginposition;
	}
	public void setBeginposition(String beginposition) {
		this.beginposition = beginposition;
	}
	public String getEndposition() {
		return endposition;
	}
	public void setEndposition(String endposition) {
		this.endposition = endposition;
	}
	public String getPipelinetype() {
		return pipelinetype;
	}
	public void setPipelinetype(String pipelinetype) {
		this.pipelinetype = pipelinetype;
	}
	public String getInservicetime() {
		return inservicetime;
	}
	public void setInservicetime(String inservicetime) {
		this.inservicetime = inservicetime;
	}
	public String getOperationalstatus() {
		return operationalstatus;
	}
	public void setOperationalstatus(String operationalstatus) {
		this.operationalstatus = operationalstatus;
	}
	public String getDesignlength() {
		return designlength;
	}
	public void setDesignlength(String designlength) {
		this.designlength = designlength;
	}
	
//	public String getCountlength() {
//		return countlength;
//	}
//	public void setCountlength(String countlength) {
//		this.countlength = countlength;
//	}
	public String getDiameter() {
		return diameter;
	}
	public void setDiameter(String diameter) {
		this.diameter = diameter;
	}
	public String getWallthickness() {
		return wallthickness;
	}
	public void setWallthickness(String wallthickness) {
		this.wallthickness = wallthickness;
	}
	public String getMaterial() {
		return material;
	}
	public void setMaterial(String material) {
		this.material = material;
	}
	public String getManupipetype() {
		return manupipetype;
	}
	public void setManupipetype(String manupipetype) {
		this.manupipetype = manupipetype;
	}
	public String getCoatingmaterial() {
		return coatingmaterial;
	}
	public void setCoatingmaterial(String coatingmaterial) {
		this.coatingmaterial = coatingmaterial;
	}
	public String getCoatinggrade() {
		return coatinggrade;
	}
	public void setCoatinggrade(String coatinggrade) {
		this.coatinggrade = coatinggrade;
	}
	public String getJointmaterial() {
		return jointmaterial;
	}
	public void setJointmaterial(String jointmaterial) {
		this.jointmaterial = jointmaterial;
	}
	public String getIncoatingmaterial() {
		return incoatingmaterial;
	}
	public void setIncoatingmaterial(String incoatingmaterial) {
		this.incoatingmaterial = incoatingmaterial;
	}
	public String getCptype() {
		return cptype;
	}
	public void setCptype(String cptype) {
		this.cptype = cptype;
	}
	public String getDesigntranyear() {
		return designtranyear;
	}
	public void setDesigntranyear(String designtranyear) {
		this.designtranyear = designtranyear;
	}
	public String getPressurerating() {
		return pressurerating;
	}
	public void setPressurerating(String pressurerating) {
		this.pressurerating = pressurerating;
	}
	public String getMediumtype() {
		return mediumtype;
	}
	public void setMediumtype(String mediumtype) {
		this.mediumtype = mediumtype;
	}
	public String getDryorwet() {
		return dryorwet;
	}
	public void setDryorwet(String dryorwet) {
		this.dryorwet = dryorwet;
	}
	public String getH2s() {
		return h2s;
	}
	public void setH2s(String h2s) {
		this.h2s = h2s;
	}
	public String getPipefunction() {
		return pipefunction;
	}
	public void setPipefunction(String pipefunction) {
		this.pipefunction = pipefunction;
	}
	public String getDesignunit() {
		return designunit;
	}
	public void setDesignunit(String designunit) {
		this.designunit = designunit;
	}
	public String getConstrucion() {
		return construcion;
	}
	public void setConstrucion(String construcion) {
		this.construcion = construcion;
	}
	public String getSupervision() {
		return supervision;
	}
	public void setSupervision(String supervision) {
		this.supervision = supervision;
	}
	public String getTestingcompany() {
		return testingcompany;
	}
	public void setTestingcompany(String testingcompany) {
		this.testingcompany = testingcompany;
	}
	public String getRecorder() {
		return recorder;
	}
	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}
	public String getRecordtime() {
		return recordtime;
	}
	public void setRecordtime(String recordtime) {
		this.recordtime = recordtime;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	
	
	
	
}
